<?php
namespace frontend\controllers;

use Yii;
use yii\web\Controller;
use yii\helpers\ArrayHelper;
use backend\models\Product;
use backend\models\ProductItem;
use backend\models\Goods;
use backend\models\Human;
use backend\models\Article;
class ProductController extends Controller{

	public function actionLists(){
		$results = [
			[
				'id' => 111, 
				'name' => '月华老师钢琴培训课...',
				'stime' => '2017/08/11',
				'goods' => [
					['id' => 1, 'name' => '水动力面膜', 'image' => '/common/uploads/1/20170814/111.jpg'],
					['id' => 1, 'name' => '水动力面膜', 'image' => '/common/uploads/1/20170814/222.jpg'],
					['id' => 1, 'name' => '水动力面膜', 'image' => '/common/uploads/1/20170814/333.jpg'],
					['id' => 1, 'name' => '水动力面膜', 'image' => '/common/uploads/1/20170814/444.jpg'],
				],

				'article' => [
					['id' => 1, 'title' => '罗华党与六位一体>>'],
					['id' => 1, 'title' => '罗华党钢琴艺术培训目的>>'],
					['id' => 1, 'title' => '罗华党钢琴艺术培训报名及费用>>'],
					['id' => 1, 'title' => '钢琴艺术培训计划落定>>'],
				],

				'where' => [
					['id' => 1, 'title' => '培训即将开始>>'],
					['id' => 1, 'title' => '培训倒数第二天>>'],
					['id' => 1, 'title' => '已邀请到XXX>>'],
					['id' => 1, 'title' => '已选好场地>>'],
				],

				'human' => [
					['id' => 1, 'name' => '罗华党老师', 'image' => '/common/uploads/1/20170814/cgal1.jpg'],

					['id' => 1, 'name' => '罗华党老师', 'image' => '/common/uploads/1/20170814/cgal2.jpg'],

					['id' => 1, 'name' => '罗华党老师', 'image' => '/common/uploads/1/20170814/cgal3.jpg'],
				],

				'starNew' => [
					['id' => 1, 'title' => '钢琴艺术家罗华党>>'],
					['id' => 2, 'title' => '艺术大师月华>>'],
				],
			]
		];

	
		return $this->render('lists', ['results' => $results]);
	}
}